﻿using System;

// Token: 0x020001BB RID: 443
public class CutAct_Image : CutAction
{
	// Token: 0x06000B7D RID: 2941 RVA: 0x0004389C File Offset: 0x00041A9C
	public CutAct_Image(CutScene cutScene) : base(cutScene, CUTACT.IMAGE)
	{
	}

	// Token: 0x06000B7E RID: 2942 RVA: 0x000438A8 File Offset: 0x00041AA8
	public CutAct_Image(CutScene cutScene, float time, string file, bool show) : base(cutScene, CUTACT.IMAGE, time)
	{
		this.file = file;
		this.show = show;
	}

	// Token: 0x06000B7F RID: 2943 RVA: 0x000438C4 File Offset: 0x00041AC4
	public override object Clone()
	{
		return new CutAct_Image(this.cutScene);
	}

	// Token: 0x06000B80 RID: 2944 RVA: 0x000438D4 File Offset: 0x00041AD4
	public override void Load(TagText.Element element, int order)
	{
		base.Load(element, order);
		this.file = TagTextUtility.Load_String(element, "file", 0);
		this.show = true;
		TagTextUtility.Load_Bool(ref this.show, element, "show", 0);
	}

	// Token: 0x06000B81 RID: 2945 RVA: 0x0004390C File Offset: 0x00041B0C
	public override void Save(TagText.Element element)
	{
		base.Save(element);
		element.AddAttribute("file", this.file);
		element.AddAttribute("show", this.show.ToString());
	}

	// Token: 0x06000B82 RID: 2946 RVA: 0x00043944 File Offset: 0x00041B44
	public override void Action(bool skip)
	{
		if (this.file != null && this.file.Length > 0)
		{
			this.cutScene.SetImage(this.file);
		}
		this.cutScene.ShowImage(this.show);
	}

	// Token: 0x04000BC5 RID: 3013
	private string file;

	// Token: 0x04000BC6 RID: 3014
	private bool show;
}
